package poker;

import java.util.Scanner;

public class Human extends Player{
	
	private int[] tab = new int[5];
	
	public Human(){
		setBot(false);
	}
	int[] getCardsToChange(){
		return tab;
	}
	
	void setCardsToChange(){
		int i=0;
		if (getNumberOfChange()==5){
			for (i=0;i<tab.length;i++){
				tab[i]=i+1;
			}
		}
		else{
			Scanner scanner = new Scanner(System.in);
			for (i=0;i<tab.length;i++){
				tab[i]=-1;
			}
			for(i=0;i<getNumberOfChange();i++){
				System.out.print("Podaj "+(i+1)+" karte ");
				while (tab[i]>5 || tab[i]<0){
					tab[i] = scanner.nextInt();;
					if (tab[i]>5 || tab[i]<0){
						System.out.print("Podaj ponownie"+i+"karte : ");
					}
				}
			}
		}
	}
}
